<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <link rel="icon" type="image/svg+xml" href="/SpiderMan.ico" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Admin</title>
  <style>
    .loadPage {
      width: 100vw;
      height: 100vh;
      position: fixed;
      left: 0px;
      top: 0px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .loadPage ul {
      padding: 0px;
      display: flex;
      flex-wrap: wrap;
      width: 100px;
      height: 100px;
      animation: loading 2s ease-out infinite;
    }

    .loadPage ul li {
      list-style: none;
      width: calc(50% - 20px);
      height: calc(50% - 20px);
      border-radius: 100%;
      background-color: #049eff;
      margin: 10px;
    }

    @keyframes loading {
      0% {
        transform: rotate(0deg);
      }

      50% {
        transform: rotate(360deg);
      }

      100% {
        transform: rotate(0deg);
      }
    }

    #app {
      overflow: hidden;
      transition: all .3s;
      width: 100%;
      height: 100%;
    }
  </style>
</head>

<body>
  <div id="app">
    <div class="loadPage">
      <ul>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
      </ul>
    </div>
  </div>
  <script>
    window.onload = () => {
      let timer
      window.addEventListener("resize", () => {
        if (timer) return
        timer = setTimeout(() => {
          document.body.style.width = window.innerWidth + "px"
          document.body.style.height = window.innerHeight + "px"
        }, 200);
      })
    }
  </script>
  <script type="module" src="/src/main.ts"></script>
</body>

</html>